package org.neuedu.chapter09_0630.demo02;

public class StringDemo01 {
    public static void main(String[] args) {
        // 1. 需要比较内容，需要先转成 String
        StringBuilder sb1 = new StringBuilder("hello");
        String str = sb1.toString();
        // 2. append(String str)
        StringBuilder sb2 = new StringBuilder("hello");
        sb2.append("world");
        System.out.println(sb2);
        // 3.reverse() 反转
        System.out.println(sb2.reverse());
    }
}
